﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true"
    CodeFile="PasswordChange.aspx.cs" Inherits="User_Shares_PasswordChange" %>

<%@ Register Src="../../Controls/ContentHolder/Holder1.ascx" TagName="Holder1" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div dir="rtl" class="MainObject">
        <uc1:Holder1 ID="Holder11" runat="server" Title="تغییر رمز عبور">
            <ContentTemplate>
                <div>
                    <asp:Label ID="Label3" runat="server" Text="کلمه عبور قدیمی"></asp:Label>
                    <asp:TextBox ID="TextBoxOldPass" runat="server" TextMode="Password" ValidationGroup="newpass"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="newpass" ControlToValidate="TextBoxOldPass" Display="Dynamic" ErrorMessage="رمز قدیمی باید وارد شود"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Label ID="Label2" runat="server" Text="کلمه عبور جدید"></asp:Label>
                    <asp:TextBox ID="TxtnewPass" runat="server" TextMode="Password" ValidationGroup="newpass"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtnewPass" Display="Dynamic"
                        ErrorMessage="طول رمز حد اقل 6 کاراکتر است" ValidationGroup="newpass" ValidationExpression=".{6,}"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="رمز جدید وارد نشده" Display="Dynamic"
                        ControlToValidate="TxtnewPass" ValidationGroup="newpass"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Label ID="Label1" runat="server" Text=" تکرار کلمه عبور جدید"></asp:Label>
                    <asp:TextBox ID="TxtconfirmNewpass" TextMode="Password" runat="server" ValidationGroup="newpass"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="Dynamic" runat="server" ValidationGroup="newpass"
                        ControlToValidate="TxtconfirmNewpass" ErrorMessage="تکرار رمز باید وارد شود"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" Display="Dynamic" ControlToCompare="TxtconfirmNewpass"
                        ControlToValidate="TxtnewPass" ErrorMessage="رمز و تکرار رمز یکسان وارد نشده است ."
                        sEnableClientScript="True" ValidationGroup="newpass"></asp:CompareValidator>
                    <br />
                    <asp:Label ID="Lblstatus" runat="server"></asp:Label>
                    <asp:Button ID="BtnRegister" runat="server" Text="تغییر رمز عبور" OnClick="BtnRegister_Click"
                        CssClass="MainObject" ValidationGroup="newpass" />
                    <asp:Button ID="BtnCancel" runat="server" CssClass="MainObject" CausesValidation="False"
                        Text="انصراف" />
                </div>
            </ContentTemplate>
        </uc1:Holder1>
    </div>
</asp:Content>
